package datalookin.dto;
// default package

/**
 * TRealtimedataId entity. @author MyEclipse Persistence Tools
 */
public class RealtimedataId implements java.io.Serializable {

	// Fields

	private String stationnum;
	private String time;
	private String type;

	// Constructors

	/** default constructor */
	public RealtimedataId() {
	}

	/** full constructor */
	public RealtimedataId(String stationnum, String time, String type) {
		this.stationnum = stationnum;
		this.time = time;
		this.type = type;
	}

	// Property accessors

	public String getStationnum() {
		return this.stationnum;
	}

	public void setStationnum(String stationnum) {
		this.stationnum = stationnum;
	}

	public String getTime() {
		return this.time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof RealtimedataId))
			return false;
		RealtimedataId castOther = (RealtimedataId) other;

		return ((this.getStationnum() == castOther.getStationnum()) || (this
				.getStationnum() != null && castOther.getStationnum() != null && this
				.getStationnum().equals(castOther.getStationnum())))
				&& ((this.getTime() == castOther.getTime()) || (this.getTime() != null
						&& castOther.getTime() != null && this.getTime()
						.equals(castOther.getTime())))
				&& ((this.getType() == castOther.getType()) || (this.getType() != null
						&& castOther.getType() != null && this.getType()
						.equals(castOther.getType())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getStationnum() == null ? 0 : this.getStationnum()
						.hashCode());
		result = 37 * result
				+ (getTime() == null ? 0 : this.getTime().hashCode());
		result = 37 * result
				+ (getType() == null ? 0 : this.getType().hashCode());
		return result;
	}

}